package io;

import java.io.IOException;
import java.io.PrintWriter;

public class Demo9 {
    public static void main(String[] args) {
        try (PrintWriter printWriter=new PrintWriter("C:/test/text.txt")){
            printWriter.printf("%d + %d = %d\n", 10, 20, 30);
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
